<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .grid-container {
      /* 网格布局 */
      display: inline-grid;
      grid-template-columns: repeat(3, 100px);
      grid-template-rows: repeat(3, 100px);
      margin: 100px;
    }
    .grid-item {
      padding: 10px;
      font-size: 30px;
      color: red;
    }
    .item1 {
      background-color: pink;
      grid-row: 1 / span 3;
    }
    .item2 {
      background-color: skyblue;
      grid-column: 2 / span 2;
    }
    .item3 {
      background-color: khaki;
      grid-column: 2 / span 2;
      grid-row: 2 / span 2;
    }
  </style>
  <body>
    <!-- 
        TIP
        grid-column属性是grid-column-start和grid-column-end的合并简写形式
        grid-row属性是grid-row-start属性和grid-row-end的合并简写形式
    -->

    <div class="grid-container">
      <div class="grid-item item1">1</div>
      <div class="grid-item item2">2</div>
      <div class="grid-item item3">3</div>
    </div>
  </body>
</html>